
	
	
	
<?php
/**
 * The template for displaying archive pages
 *
 * Used to display archive-type pages if nothing more specific matches a query.
 * For example, puts together date-based pages if no date.php file exists.
 *
 * If you'd like to further customize these archive views, you may create a
 * new template file for each one. For example, tag.php (Tag archives),
 * category.php (Category archives), author.php (Author archives), etc.
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since Twenty Sixteen 1.0
 */

get_header(); ?>

	<link href="<?echo bloginfo('url')?>/wp-content/plugins/yy/css/lanrenzhijia.css" rel="stylesheet" type="text/css" />
		
	<div class="con_2">
		<div class="small-nav">
			当前位置：&nbsp;<a href="<?php bloginfo('url'); ?>">首页&nbsp;</a>&nbsp;&nbsp;>&nbsp;<?=get_category_parents($cat,true,' > ');?>
		</div>
		<div class="con_4">
			<div class="left">
				<div class="list_5">
				<?php if ( have_posts() ) : ?>
					<ul>
					<?php
					// Start the Loop.
					while ( have_posts() ) : the_post();

					echo '<li>';	
					echo '	<a href="';
					echo the_permalink();
					echo'"rel="bookmark" class="img">';
					echo'<img src="';
					echo catch_that_image();
					echo'">';
					echo '</a>';
					echo'<div class="txt">';
					echo'<span class="tit">';
					echo '	<a href="';
					echo the_permalink();
					echo'"rel="bookmark" class="title">';
					
					echo the_title();
					echo '</a>';
					echo'</span>';
					echo '<span class="desc">';
					echo  wp_trim_words( get_the_content(), 100 );
					echo'<a href="';
					echo the_permalink();
					echo'" target="_blank">&nbsp;阅读原文</a>';
					
					echo'</span>';
					echo'<span class="time">';
					echo the_time('Y/m/d G:i');
					echo'</span>';
					echo'</div>';
					echo '</li>';
					endwhile;

					// Previous/next page navigation.
					the_posts_pagination( array(
						'prev_text'          => __( 'Previous page', 'twentysixteen' ),
						'next_text'          => __( 'Next page', 'twentysixteen' ),
						'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
					) );

				// If no content, include the "No posts found" template.
				else :
					get_template_part( 'template-parts/content', 'none' );

				endif;
				?>
					</ul>
					
					<div style="clear:both"></div>		
				</div>
			
				<div style="clear:both"></div>		
			</div>
			
			<div class="right">
				
				<div id="baiye" class="baiye">
					
			
						<h4><?php wp_list_categories('include=4&title_li=&style=none'); ?></h4> 	
					
					<?php
						
						category_description(4); 
						query_posts('showposts=5&cat=4'); ?>
						<ul class="accordion" id="accordion">
						<?
						for($m=0;$m<5;$m++){
						
						while (have_posts()) : the_post(); 	
						echo '<li id="bg'.$m++.'" class="bg'.$m++.'" >';
						
						echo'<div class="heading"><i>&bull;</i>';
						 echo the_title(); 
						echo'</div>';
						echo'<div class="description">';
                      echo'	<a href="';
						echo	the_permalink();
						echo'" rel="bookmark" class="title">';
                       echo'<img src="'.catch_that_image() .'">';
						
						echo'	</a>';
						
						
						
						
						
						 echo'</div>';
						
						echo'</li>'; 					
						endwhile;
						}?>
						

 						
						
					</ul>
				 <script type="text/javascript" src="<?echo bloginfo('url')?>/wp-content/plugins/yy/js/jquery.min.js"></script>
				  <script type="text/javascript">
			 var div = document.getElementById('bg0');
			 div.className = 'bg0 active';
		   $(function() {
                
				$('#accordion > li').hover(
                    function () {
                        var $this = $(this);
                        $this.stop().animate({'height':'380px'},500);
                        $('.heading',$this).stop(true,true).fadeOut();
                        $('.bgDescription',$this).stop(true,true).slideDown(500);
                        $('.description',$this).stop(true,true).fadeIn();
                    },
                    function () {
                        var $this = $(this);
                        $this.stop().animate({'height':'30px'},1000);
                        $('.heading',$this).stop(true,true).fadeIn();
                        $('.description',$this).stop(true,true).fadeOut(500);
                        $('.bgDescription',$this).stop(true,true).slideUp(700);
                    }
                );
            });
        </script>
				 <div style="clear:both"></div>
				</div>
		
		
				
				
				<div class="list_m">
				<h4>今日要闻</h4>
			
			<?php query_posts('showposts=8'); ?>
			<ul>
			
			
			<?php for($i=1;$i<9;$i++){
				while (have_posts()) : the_post(); 
			echo'<li>';	
			
			echo'<b '; 
			if($i<4){echo ' style="background:#fa7f70;color:#eee"';}
			echo'>0'.$i++.'</b>';	
			echo'<a href="';
			echo the_permalink();
			echo'">';
			echo the_title();
			echo'</a>';
			echo'</li>';
			endwhile;
			}
			?>
			
				
			
			
			
			</ul>
				
				
				
				
				</div>
				<div class="list_l">
				<?php query_posts('showposts=8'); ?>
				<ul>
				<?php while (have_posts()) : the_post(); ?>
				<li>
					<a href="<?php the_permalink() ?>" rel="bookmark" class="title">
					<img src="<?php echo catch_that_image() ?>">
					<span class="tit"><?php the_title(); ?></span>
				</a>
				</li>
				<?php endwhile;?>
				</ul>
				
				
				
				</div>
				
			
			</div>
		
		<div style="clear:both"></div>	
		</div>
		
			
			
			<div style="clear:both"></div>	
	</div>
		
	</div><!-- .content-area -->

<?php get_footer(); ?>
